package com.digua.base.api

open class HttpReqListener<T>(val clz: Class<T>, val isList: Boolean = false) {

    open fun onSuccess(res: T) {
    }

    open fun onSuccess(res: ArrayList<T>) {
    }

    open fun onSuccess(res: ArrayList<T>, total: Int, pageIndex: Int, pages: Int) {
    }

    open fun fail(msg: String) {
    }

    open fun onFinished() {
    }

}